package controller;

import entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: taa
 * @Desc: 用户功能控制层
 * @Create: 2025-06-14 15:31
 **/
@RestController
@RequestMapping("/provider")
public class UserController {

    @GetMapping("/user/{id}")
    public User getUser(@PathVariable("id") Long id) {
        return new User(id, "User-" + id, "user" + id + "@example.com");
    }

}

